#!/bin/bash

if [ "$1" = "compile" ]; then
    xelatex main && bibtex main && xelatex main && xelatex main
    exit 0
fi

if [ "$1" = "clean" ]; then
    rm -f main.aux *.log main.out main.bbl main.blg main.pdf
    exit 0
fi

# 使用说明
echo "Usage: ./shell.sh [compile|clean]"
echo "compile: 编译"
echo "clean: 清理编译产生的文件"
